package controllers;

import play.mvc.*;
import play.mvc.Scope.Session;
import util.ConstKey;

/**
 * 权限检查
 * @author sun
 *
 */
public class PermissionsController extends Controller {

	@Before
    static void index() {
		String string = session.get(ConstKey.sessionkey.memberid.getValueString());
		if(null==string||"".equals(string.trim())){
			Login.index();
		}
    }

}
